<!DOCTYPE HTML>
<html xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<link rel="stylesheet" href="../css/currency/bootstrap.css" />
	<link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
	<link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
	<link href="../css/style.css" rel="stylesheet" type="text/css" />
	<link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../css/recipe.css" />	
	<title>APP更新报表</title>
	</head>

	<body>
	<nav class="breadcrumb" style="margin-bottom:0px"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 更新报表 <span class="c-gray en">&gt;</span>更新统计
		<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
    <div class="pd-20" id="appUpdate">
        <div class="text-c" id="appUpdateList">

	        <div class="cl pd-5 bg-1 bk-gray mt-20">

	            <span class="r" v-cloak>
	            	共有数据：{{pageInfo.total}}条
	            </span>
	        </div>
	        <form >
	            <table class="table table-border table-bordered table-bg">
	                <thead>
	                <tr class="text-c">
	                <!--TODO 生成表头-->
						<th nowrap="nowrap" width='12.286%'>APP名称</th>
						<th nowrap="nowrap" width='12.286%'>APP版本</th>
						<th width='11.286%'>状态</th>
						<th nowrap="nowrap" width='12.286%'>更新成功设备数</th>
	                </tr>
	                </thead>
	                <tbody v-cloak >
	                    <tr class="text-c" v-for="(item,index) in pageInfo.list">
							<td nowrap="nowrap">{{item.appName}}</td>
							<td nowrap="nowrap">{{item.version}}</td>
							<td>
								<span v-if="item.status == '1'"><b>有效</b></span>
								<span v-if="item.status == '0'">无效</span>
							</td>
							<td nowrap="nowrap">{{item.num}}</td>
	                    </tr>
	                </tbody>
	            </table>
	        </form>
        
	        <div class="pageBox" v-cloak id="pageBox" >
	        	<div class="pageInfo">显示 <span id="startRow">{{pageInfo.startRow}}</span> 到 <span id="endRow">{{pageInfo.endRow}}条</span>&nbsp;&nbsp;&nbsp;&nbsp;{{pageInfo.pages}}页&nbsp;&nbsp;&nbsp;&nbsp;共 <span id="total">{{pageInfo.total}}</span> 条
	                <select v-model="selectedPageSize" v-on:change="getList('changePageSize')">
						<option value="5">5</option>
	                    <option value="10">10</option>
	                    <option value="15">15</option>
	                    <option value="20">20</option>
	                    <option value="50">50</option>
	                </select>
	             </div>
	        	<ul class="pagination" id="pagination"></ul>
	        </div>
	        <div class="tips"  id="noData" align="center" style="display: none">
	        	无数据
	        </div>
        </div>
	    	<!--TODO 添加、更新弹窗-->
	        <form class="form form-horizontal" id="addPanel" style="display: none">
	        <table class="table" border='0' width='100%'>
	            <tr>
				    <td width="30%" align="right" nowrap="nowrap">
				    </td>
				    <td width="30%" style="margin-left: 0px">
				    </td>
				    <td width="40%" ></td>
				</tr>
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            设备编号：
				        </label>
				    </td>
				    <td >
				        <input type="text" class="input-text radius" name="equipmentCode" v-model="equipmentCode" placeholder="请填写设备编号"/>
				    </td>
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="equipmentCodeErr!=''">{{equipmentCodeErr}} </span></td>
				</tr>
			    
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            计划更新时间：
				        </label>
				    </td>
				    <td >
				        <input type="text" v-model="updatePlanDate" id="updatePlanDate-d" @focus="changeTime('updatePlanDate-d')" onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'%y-%M-%d %H:%m-%s'})" class="input-text Wdate" style="width:140px;" placeholder="请输入计划更新时间">
				    </td>
				    
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="updatePlanDateErr!=''">{{updatePlanDateErr}} </span></td>
				</tr>
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            更新完成时间：
				        </label>
				    </td>
				    <td >
				        <input type="text" v-model="updateSuccessDate" id="updateSuccessDate-d" @focus="changeTime('updateSuccessDate-d')" onfocus="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:'%y-%M-%d %H:%m-%s'})" class="input-text Wdate" style="width:140px;" placeholder="请输入更新完成时间">
				    </td>
				    
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="updateSuccessDateErr!=''">{{updateSuccessDateErr}} </span></td>
				</tr>
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            状态：
				        </label>
				    </td>
				    <td >
				        <input type="text" class="input-text radius" name="status" v-model="status" placeholder="请填写状态"/>
				    </td>
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="statusErr!=''">{{statusErr}} </span></td>
				</tr>
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            APP名称：
				        </label>
				    </td>
				    <td >
				        <input type="text" class="input-text radius" name="appName" v-model="appName" placeholder="请填写APP名称"/>
				    </td>
				    
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="appNameErr!=''">{{appNameErr}} </span></td>
				</tr>
			    <tr>
				    <td  align="right" nowrap="nowrap">
				        <label class="form-label" style="padding:0px">
				            APP版本：
				        </label>
				    </td>
				    <td >
				        <input type="text" class="input-text radius" name="version" v-model="version" placeholder="请填写APP版本"/>
				    </td>
				    
				    <td  ><span class="Validform_checktip Validform_wrong errorInfo" v-if="versionErr!=''">{{versionErr}} </span></td>
				</tr>
				<tr>
				    <td width="100%" class="text-r" colspan="2">
				        <a class="btn btn-primary radius" style="margin-right: 10px;" id="saveDictType" v-on:click="save">保存</a>
	                	<a class="btn btn-default radius" id="addCancel" v-on:click="cancel">取消</a>
				    </td>
				    <td width="40%" ></td>
				</tr>
	        </table>
	        </form>    
    </div>
	</body>
</html>
<script type="text/javascript" src="../js/common/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../lib/layer/1.9.3/layer.js" ></script>
<script type="text/javascript" src="../lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="../lib/icheck/jquery.icheck.min.js"></script>
<script type="text/javascript" src="../lib/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="../js/common/H-ui.js"></script>
<script type="text/javascript" src="../js/common/H-ui.admin.js"></script>
<script type="text/javascript" src="../js/utils/utils.js"></script>
<script type="text/javascript" src="../js/currency/vue.js"></script>
<script type="text/javascript" src="../js/currency/vue-resource.min.js"></script>
<script type="text/javascript" src="../js/currency/base.js"></script>
<script type="text/javascript" src="../js/currency/jqPaginator.js"></script>
<script type="text/javascript" src="../js/appUpdate.js"></script>
